const Mock=require('mockjs')

const data=Mock.mock({
    "mainData|2":[{
        "title|+1":['多点超市','全球精选'],
        "banner|6":["image(300x180,@color)"],
        "icons|15":[{
            "tit":"@cword(4)",
            "url":"@image(50x50)",
        }],
        "list|20-30":[{
            "imgs":"@image(150x200,@color)",
            "title":"@ctitle",
            "desc":"@cword(10,15)",
            "id":"@id",
            "price|10-999":1
        }]
    }],
    "addressData|10":[{
        "name":"@cname",
        "tel":/^1[3-9]\d{9}$/,
        "address":"@city(true)",
        "id|+1":0,
        "isDefault":false
    }]
})

module.exports={
    mainData:data.mainData,
    addressData:data.addressData
}